﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Creative85.Framework.Data;
using Project32CHE.Biz.UserAccount.Models;
using NPoco;
using Creative85.Framework.Utilities;
using System.Runtime.Caching;

namespace Project32CHE.Biz.UserAccount
{
    public static class UserService
    {
        public static User Get(Guid id)
        {
            var user = Db.Instance.SingleById<User>(id);
            return user;
        }
        public static List<User> GetUserByShopID(Guid shopid)
        {
            return Db.Instance.Query<User>().Where(x => x.ShopID == shopid).ToList();
        }
    }
}
